<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			
			/* 第一个盒子 */
			.box01{
				/* 弹性盒子 */
				display: flex;
				/* 主轴对齐方式--水平对齐 */
				justify-content: center;
				/* 侧轴对齐方式 -- 垂直对齐*/
				align-items: flex-end;
				border: 1px red solid;
				width: 580px;
				height: 200px;
			}
			.itme01{
				width: 100px;
				height: 100px;
				background-color: aquamarine;
				margin: 1px;
			}
			
			/* 第二个盒子 */
			.box02{
				/* 弹性盒子 */
				display: flex;
				/* 竖向排列 */
				flex-direction: column;
				/* 主轴对齐方式--垂直对齐 */
				justify-content: center;
				/* 侧轴对齐方式 -- 水平对齐*/
				align-items: flex-end;
				border: 1px red solid;
				width: 500px;
				height: 230px;
			}
			.itme02{
				width: 100px;
				height: 30px;
				background-color: aquamarine;
				margin: 1px;
			}
		</style>
	</head>
	<body>
		<h1>横向排列</h1>
		<div class="box01">
			<div class="itme01"></div>
			<div class="itme01"></div>
			<div class="itme01"></div>
			<div class="itme01"></div>
			<div class="itme01"></div>
		</div>
		<hr>
		<h1>竖向排列</h1>
		<div class="box02">
			<div class="itme02"></div>
			<div class="itme02"></div>
			<div class="itme02"></div>
			<div class="itme02"></div>
			<div class="itme02"></div>
		</div>
	</body>
</html>